package com.bnyy.health.bean;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Author : 关炳鹏
 * Description : 首页健康数据
 * Date : 2022/1/22
 **/
public class HomePaegHealthData implements Serializable {

    private int type;
    private String type_name;
    private ArrayList<Data> devices;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    public ArrayList<Data> getDevices() {
        return devices;
    }

    public void setDevices(ArrayList<Data> devices) {
        this.devices = devices;
    }

    public static class Data implements Serializable {
        private int high_value;
        private int low_value;
        private int value;
        private String numerical;
        private String desc;
        private String lastest_datetime;
        private String device_name;
        private int device_type;
        private int type;
        private int wear_id;
        private String wear_uuid;
        private String wear_name;

        public int getHigh_value() {
            return high_value;
        }

        public void setHigh_value(int high_value) {
            this.high_value = high_value;
        }

        public int getLow_value() {
            return low_value;
        }

        public void setLow_value(int low_value) {
            this.low_value = low_value;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getNumerical() {
            return numerical;
        }

        public void setNumerical(String numerical) {
            this.numerical = numerical;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getLastest_datetime() {
            return lastest_datetime;
        }

        public void setLastest_datetime(String lastest_datetime) {
            this.lastest_datetime = lastest_datetime;
        }

        public String getDevice_name() {
            return device_name;
        }

        public void setDevice_name(String device_name) {
            this.device_name = device_name;
        }

        public int getDevice_type() {
            return device_type;
        }

        public void setDevice_type(int device_type) {
            this.device_type = device_type;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getWear_id() {
            return wear_id;
        }

        public void setWear_id(int wear_id) {
            this.wear_id = wear_id;
        }

        public String getWear_uuid() {
            return wear_uuid;
        }

        public void setWear_uuid(String wear_uuid) {
            this.wear_uuid = wear_uuid;
        }

        public String getWear_name() {
            return TextUtils.isEmpty(wear_name) ? "--" : wear_name;
        }

        public void setWear_name(String wear_name) {
            this.wear_name = wear_name;
        }
    }
}
